package com.prs.help;

import org.prs.model.Child;
import org.prs.model.User;
import org.prs.persistence.UserDatabasePersitenceManager;
import org.prs.service.PasswordService;

/**
 *
 * @author Richard Gathogo
 */
public class MainHelper {

    public MainHelper() {
    }
    
    public static void main(String args[]){
       
       User user=new User();
       user.setPassword(PasswordService.getInstance().encrypt("muraguri"));
       user.setUsername("richard");
       UserDatabasePersitenceManager mad=new UserDatabasePersitenceManager();
       boolean d=mad.insertUser(user);
       if(d){
           System.out.println("Set to go");
       }else{
           System.out.println("Not Set to go");
       }
    }

}
